package com.mine.education.course.service.impl;

import com.mine.education.common.utils.PageUtils;
import com.mine.education.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mine.education.course.dao.CatalogDao;
import com.mine.education.course.entity.CatalogEntity;
import com.mine.education.course.service.CatalogService;


@Service("catalogService")
public class CatalogServiceImpl extends ServiceImpl<CatalogDao, CatalogEntity> implements CatalogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CatalogEntity> page = this.page(
                new Query<CatalogEntity>().getPage(params),
                new QueryWrapper<CatalogEntity>()
        );

        return new PageUtils(page);
    }

}